package com.taxi.driver.module.vo;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import com.taxi.driver.data.entity.AssessmentEntity;

/**
 * 考核统计
 */
public class AssessmentStatisticalVO {

    public static AssessmentStatisticalVO createFrom(AssessmentEntity entity) {
        if (entity == null) return new AssessmentStatisticalVO();
        String strJson = JSON.toJSONString(entity);
        return JSON.parseObject(strJson, AssessmentStatisticalVO.class);
    }

    @JSONField(name = "allOrderCount")
    public int order_count;//订单数

    @JSONField(name = "successOrderCount")
    public int complete_order_count;//完成订单数

    @JSONField(name = "successOrderRate")
    public String order_probability;//成单率

    @JSONField(name = "orderFlow")
    public double order_recode;//订单流水

    @JSONField(name = "incomeFlow")
    public double income_recode;//收入流水

    @JSONField(name = "averageScore")
    public double average_score;//平均得分

    @JSONField(name = "complainCnt")
    public int complaints_count;//被投诉次数

    @JSONField(name = "onlineTime")
    public long online_time;//在线时长

    @JSONField(name = "onserviceTime")
    public long service_time;//服务时长

    @JSONField(name = "onlineMileage")
    public String online_mileage;//在线里程
}
